﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Ecreate.Web.popedom
{
    public partial class navigator : System.Web.UI.Page
    {
        public string str_xml = "";
        Ecreate.Popedom.Service.IMenuService menuService = new Ecreate.Popedom.Service.SpringImpl.MenuServiceImpl();
        protected void Page_Load(object sender, EventArgs e)
        {
            utility.SessionObject o=(utility.SessionObject)utility.SessionManage.getSessionObject(this);
            Ecreate.Popedom.tSysuser user=o.Admin;
            if (user.Group.Adminflag == 1)
            {
                this.str_xml = menuService.getXmlString();
            }
            else
            {
                this.str_xml = menuService.getViewXmlStringByGroupId(user.Group.Id);
            }
        }
    }
}
